package com.gdwhomework.chapter09.work01;

/**
 * @author 关道伟
 * @version 1.0
 */
public class Test01 {
    public static void main(String[] args) {
        Color.BLACK.show();
        switch (Color.YELLOW){
            case BLACK:
                System.out.println("匹配到黄色...");
                break;
            case RED:
                System.out.println("匹配到红色");
                break;
            case BLUE:
                System.out.println("匹配到蓝色...");
                break;
            case GREEN:
                System.out.println("匹配到绿色...");
                break;
            case YELLOW:
                System.out.println("匹配到黄色...");
                break;
            default:
                System.out.println("没有此颜色...");
        }
    }
}
